package com.sias.regexp;

/**
 * @author 吴文杰
 * @version 1.0
 * @createTime 2023-05-03 14:38:35
 */
public class HomeWork02 {
  public static void main(String[] args) {
    String content = "0.89";
    String regStr = "^[-+]?([1-9]\\d*|0)(\\.\\d+)?$";
    boolean matches = content.matches(regStr);
    System.out.println(matches);
  }
}
